<script lang="ts" setup>
import { defineProps } from 'vue'
// 调用函数传递数据
const { title } = defineProps(['title'])
</script>

<template>
  <div class="title">
    <div>{{ title }}</div>
  </div>
</template>
<style lang="scss" scoped>
.title {
  width: 100%;
  height: 30px;
  padding-left: 12px;
  background-image: url(../../assets/左.png);
  color: #dbdbdb;
  font-weight: bold;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  line-height: 30px;
  transform: rotateY(180deg);
  div {
    transform: rotateY(180deg) translateX(20px);
  }
}
</style>